package com.safe.app.service;


import com.safe.app.model.Depart;
import com.safe.app.model.User;

import java.util.List;

/**
 * @author h2l
 * @date 2019/1/7 19:02
 */
public interface UserService {


    User login(String userName, String passWord) throws Exception;

    List<User> getUseList(int pageNo, int pageSize) throws Exception;

    boolean addUser(User user);

    boolean checkOnlyPhone(String phoneNum) throws Exception;

    List<Depart> getDepartList() throws Exception;

    boolean addDepart(Depart depart) throws Exception;

}
